package com.booklove.controller.book;


import com.booklove.domain.dto.DonatebookjudgeDTO;
import com.booklove.result.Result;
import com.booklove.service.book.DonatebookjudgeService;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController("donatebookjudgeCLL")
@RequestMapping("/book/donatebookjudge")
@RequiredArgsConstructor
public class DonatebookjudgeController {

    private final DonatebookjudgeService donatebookjudgeService;

    @ApiOperation("审核接口，审核一个捐赠审核项目")
    @PostMapping("/judge")
    Result<String> judgeDonateBook(@RequestBody DonatebookjudgeDTO donatebookjudgeDTO) {
        donatebookjudgeService.judgeDonatebook(donatebookjudgeDTO);
        return Result.success();
    }


}
